package com.example.demo.enums;

import lombok.AllArgsConstructor;


@AllArgsConstructor
public enum Constants  {

    /**
     * 数据源类型
     */
    DATASOURCE_TYPE_SQL(1, "SQL"),
    DATASOURCE_TYPE_ES(2, "ES"),

    /**
     * 规则类型
     */
    RULE_TYPE_ES(3, "ES"),
    RULE_TYPE_SQL(4, "SQL"),
    ;

    private final Integer code;

    private final String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
